package demo.easyexecl.handler.row;

import com.alibaba.excel.write.handler.AbstractRowWriteHandler;
import com.alibaba.excel.write.handler.RowWriteHandler;
import com.alibaba.excel.write.metadata.holder.WriteSheetHolder;
import com.alibaba.excel.write.metadata.holder.WriteTableHolder;
import com.alibaba.excel.write.style.row.AbstractRowHeightStyleStrategy;
import org.apache.poi.ss.usermodel.Row;

/**
 * 行写处理器
 *
 * @author yexi
 */
public class CustomRowWriteHandler implements RowWriteHandler {
    @Override
    public void beforeRowCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, Integer rowIndex, Integer relativeRowIndex, Boolean isHead) {

    }

    @Override
    public void afterRowCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, Row row, Integer relativeRowIndex, Boolean isHead) {

    }

    @Override
    public void afterRowDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, Row row, Integer relativeRowIndex, Boolean isHead) {

    }

    /**
     * 接口的扩展子类介绍，统一展列
     *
     * @see RowWriteHandler extends WriteHandler 行写处理器
     * @see AbstractRowWriteHandler implements RowWriteHandler 行写处理器抽象类，不提供实现，供予继承
     * @see AbstractRowHeightStyleStrategy implements RowWriteHandler 行高策略抽象类，默认重写afterRowDispose要求设置高度，需要子类自行实现setHeadColumnHeight和setContentColumnHeight方法
     */
    private void expandIntroduce() {

    }

}
